package com.css.listener;

import com.css.listener.interfaces.KeyBorderListener;
import com.css.listener.interfaces.impl.KeyBorderListenerAdapter;

/**
 * <p>
 * -
 * </p>
 *
 * @author css
 * @since 2021/4/7
 */
public class KeyListener {
    private KeyBoarder keyBoarder;
    private KeyBorderListener keyBorderListener = new KeyBorderListenerAdapter();

    public KeyListener() {
        keyBoarder = new KeyBoarder();
    }

    public void start() {
        keyBoarder.setBorderListener(keyBorderListener);
    }

    public void stop() {
        keyBoarder.setBorderListener(null);
    }
}
